/*
* acooly.cn Inc.
* Copyright (c) 2017 All Rights Reserved.
* create by ouwen
* date:2017-10-16
*/
package com.yiji.fintech.musfinance.entity;


import com.acooly.core.utils.Money;
import com.yiji.fintech.musfinance.base.enums.CurrencyEnum;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * center_transaction_deposit_back Entity
 *
 * @author ouwen
 * Date: 2017-10-16 09:58:57
 */
@Getter
@Setter
@Entity
@Table(name = "center_transaction_deposit_back")
public class TransactionDepositBack extends AbstractTransaction {

	/** 渠道编码 */
	@Size(max=32)
    private String gatewayChannelApi;

	/** 原渠道编码 */
    private String oldGatewayChannelApi;

	/** 原充值内部流水号 */
	@Size(max=36)
    private String oldBizOrderNo;

	/**原充值外部流水号*/
	@Size(max=36)
	private String oldMerchOrderNo;

	/** 交易金额 */
    private Money amount;

	/** 到账金额 */
    private Money amountIn;

	/** 币种 */
	@Enumerated(EnumType.STRING)
	private CurrencyEnum currency;

	/** 交易时间 */
    private Date transTime;

	/** 清算时间 */
    private Date settleTime;

	/** 网关时间 */
    private Date gatewayTime;


	/** 退款银行编码 */
	@Size(max=16)
    private String backBankId;

	/** 退款账号 */
	@Size(max=32)
    private String backAccountNo;

	/** 退款账号名 */
	@Size(max=128)
    private String backAccountName;

	/** 退款原因 */
	@Size(max=255)
    private String refundReason;

	/** 扩展字段 */
	@Size(max=256)
    private String extendFields;

}
